package org.itzixi.controller;


import jakarta.annotation.Resource;
import org.itzixi.tasks.SMSTask;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth")
public class HelloController {

    @Resource
    private SMSTask smsTask;



    @GetMapping
    public String hello(){
        return "hello world";
    }


    @GetMapping("/sms")
    public String sms() throws Exception {
        smsTask.sendSMS("17787298584", "555666");



        return "异步发送短信成功！！！！！";
    }
}
